module.exports = app => {
    const { router, controller } = app;

    router.get('/api/pub/common/test', controller.common.test);
    router.get('/api/app/common/test', controller.common.test);

    router.get('/api/pub/common/geocoder', controller.common.tencentGeocoder);

    router.post('/api/pub/upload/uploadFile', controller.uploader.uploadFile);
    router.post('/api/pub/upload/uploadMultiFile', controller.uploader.uploadMultiFile);
    router.post('/api/pub/upload/memberAvatar', controller.uploader.uploadAvatar);
    router.post('/api/pub/upload/memberPhoto', controller.uploader.uploadPhoto);
    router.post('/api/pub/upload/memberIdentity', controller.uploader.uploadIdentity);
    router.post('/api/pub/upload/meetingImage', controller.uploader.uploadMeetingImage);

    router.get('/api/pub/wechat/getAccessToken', controller.wechat.getAccessToken);
    router.get('/api/pub/wechat/getNearbyPoiList', controller.wechat.getNearbyPoiList);
    router.post('/api/pub/wechat/sendCustomerMessage', controller.wechat.sendCustomerMessage);
    router.post('/api/pub/wechat/sendTemplateMessage', controller.wechat.sendTemplateMessage);
};